package com.twu;

/**
 * Created by vivekpatil on 7/3/14.
 */
public class Soy extends Condiments {
    Beverage beverage;
    SoySize size;

    public Soy(Beverage beverage,SoySize size) {
        this.beverage=beverage;
        this.size=size;
    }

    @Override
    String display() {
        return "Soy";
    }

    @Override
    int cost() {
        return 15 + beverage.cost() + size.cost();
    }
}
